#include "CAnalysisFactory.h"

namespace CommandWork
{
	CAnalysisFactory::CAnalysisFactory()
	{
	}

	CAnalysisFactory::~CAnalysisFactory()
	{
	}

	ICommandAnalysis* CAnalysisFactory::GetInstance(UINT ID)
	{
		ICommandAnalysis *mCmdObj;
		switch (ID)
		{
		case 1:
			mCmdObj = new CHeartbeat();
			break;
		default:
			mCmdObj = NULL;
			break;
		}
		return mCmdObj;
	}
}